package com.example.shushiyunsst.fragment.main.home.child.icon_sst.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

import static com.example.shushiyunsst.fragment.main.home.child.icon_sst.bean.PayTypeConfigKt.A_LI_PAY;
import static com.example.shushiyunsst.fragment.main.home.child.icon_sst.bean.PayTypeConfigKt.BANK_PAY;
import static com.example.shushiyunsst.fragment.main.home.child.icon_sst.bean.PayTypeConfigKt.WEI_CHAT_PAY;


public class SaveTxBuyOrderPayBean implements Serializable {

    public static int WEI_CHAT_PAY_ = WEI_CHAT_PAY;

    public static int A_LI_PAY_ = A_LI_PAY;

    public static int BANK_PAY_ = BANK_PAY;


    /**
     * pushMsg : {"mid":null,"uid":3,"contentDesc":"买家已支付，请到我的订单中尽快确认并放币，订单号:TX20201021100557117435218","createTime":null,"userNumber":"9633395","deviceToken":"ApaYxqJV2bogQDxHhD9hwqRV6a-BjORwh1Mbl9FEZB11"}
     * order : {"toid":57,"txid":18,"txNo":"TX20201021100557117435218","tokenType":"SST","txType":1,"price":1.02,"txNums":158,"totalPrice":161.16,"orderStatus":0,"statusDesc":"待支付","orderDesc":null,"createTime":"2020-10-21 10:11:04","payType":0,"realName":"姐姐这就是","uidBuyer":2,"uidSeller":3,"isSeller":null}
     * payment : {"pid":1,"uid":3,"isSupportWx":1,"isSupportAipay":1,"isSupportBank":1,"wxUrl":"http://162.247.99.201:81/3b67fd5c4e4d48a6a91e55ee84272130mmexport1603072297803.jpg","alipayUrl":"http://162.247.99.201:81/9a6a979c5c1640bc88cb1819c1971079mmexport1603072302717.jpg","bankName":"招商银行","bankNameChild":"北京上地支行","bankNo":"6225880121905099","wxAccount":"15101049579","createTime":"2020-10-08 14:58:30","realName":"张大仙","alipayAccount":"15101049579"}
     */

    @JSONField(name = "pushMsg")
    private PushMsgBean pushMsg;
    @JSONField(name = "order")
    private OrderBean order;
    @JSONField(name = "payment")
    private PaymentBean payment;

    public PushMsgBean getPushMsg() {
        return pushMsg;
    }

    public void setPushMsg(PushMsgBean pushMsg) {
        this.pushMsg = pushMsg;
    }

    public OrderBean getOrder() {
        return order;
    }

    public void setOrder(OrderBean order) {
        this.order = order;
    }

    public PaymentBean getPayment() {
        return payment;
    }

    public void setPayment(PaymentBean payment) {
        this.payment = payment;
    }


    public static class OrderBean {
        /**
         * toid : 57
         * txid : 18
         * txNo : TX20201021100557117435218
         * tokenType : SST
         * txType : 1
         * price : 1.02
         * txNums : 158
         * totalPrice : 161.16
         * orderStatus : 0
         * statusDesc : 待支付
         * orderDesc : null
         * createTime : 2020-10-21 10:11:04
         * payType : 0
         * realName : 姐姐这就是
         * uidBuyer : 2
         * uidSeller : 3
         * isSeller : null
         */

        @JSONField(name = "toid")
        private int toid;
        @JSONField(name = "txid")
        private int txid;
        @JSONField(name = "txNo")
        private String txNo;
        @JSONField(name = "tokenType")
        private String tokenType;

        //买卖方式
        @JSONField(name = "txType")
        private int txType;
        @JSONField(name = "price")
        private double price;
        @JSONField(name = "txNums")
        private double txNums;
        @JSONField(name = "totalPrice")
        private double totalPrice;
        @JSONField(name = "orderStatus")
        private int orderStatus;
        @JSONField(name = "statusDesc")
        private String statusDesc;

        @JSONField(name = "orderDesc")
        private String orderDesc;

        @JSONField(name = "createTime")
        private String createTime;

        //支付方式
        @JSONField(name = "payType")
        private int payType;

        @JSONField(name = "realName")
        private String realName;

        @JSONField(name = "uidBuyer")
        private int uidBuyer;

        @JSONField(name = "uidSeller")
        private int uidSeller;

        @JSONField(name = "isSeller")
        private int isSeller;

        public int getToid() {
            return toid;
        }

        public void setToid(int toid) {
            this.toid = toid;
        }

        public int getTxid() {
            return txid;
        }

        public void setTxid(int txid) {
            this.txid = txid;
        }

        public String getTxNo() {
            return txNo;
        }

        public String getTxNo22() {
            return "订单：" + txNo;
        }

        public void setTxNo(String txNo) {
            this.txNo = txNo;
        }

        public String getTokenType() {
            return tokenType;
        }

        public void setTokenType(String tokenType) {
            this.tokenType = tokenType;
        }

        public int getTxType() {
            return txType;
        }

        public void setTxType(int txType) {
            this.txType = txType;
        }

        public double getPrice() {
            return price;
        }

        public String getPriceStr() {
            return price + "";
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public double getTxNums() {
            return txNums;
        }

        public String getTxNumsStr() {
            return txNums+"";
        }

        public void setTxNums(int txNums) {
            this.txNums = txNums;
        }

        public double getTotalPrice() {
            return totalPrice;
        }

        public String getTotalPriceStr() {
            return totalPrice+"";
        }


        public void setTotalPrice(double totalPrice) {
            this.totalPrice = totalPrice;
        }

        public int getOrderStatus() {
            return orderStatus;
        }

        public void setOrderStatus(int orderStatus) {
            this.orderStatus = orderStatus;
        }

        public String getStatusDesc() {
            return statusDesc;
        }

        public void setStatusDesc(String statusDesc) {
            this.statusDesc = statusDesc;
        }

        public String getOrderDesc() {
            return orderDesc;
        }

        public void setOrderDesc(String orderDesc) {
            this.orderDesc = orderDesc;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public int getPayType() {
            return payType;
        }

        public void setPayType(int payType) {
            this.payType = payType;
        }

        public String getRealName() {
            return realName;
        }

        public void setRealName(String realName) {
            this.realName = realName;
        }

        public int getUidBuyer() {
            return uidBuyer;
        }

        public void setUidBuyer(int uidBuyer) {
            this.uidBuyer = uidBuyer;
        }

        public int getUidSeller() {
            return uidSeller;
        }

        public void setUidSeller(int uidSeller) {
            this.uidSeller = uidSeller;
        }

        public int getIsSeller() {
            return isSeller;
        }

        public void setIsSeller(int isSeller) {
            this.isSeller = isSeller;
        }
    }

    public static class PaymentBean {
        /**
         * pid : 1
         * uid : 3
         * isSupportWx : 1
         * isSupportAipay : 1
         * isSupportBank : 1
         * wxUrl : http://162.247.99.201:81/3b67fd5c4e4d48a6a91e55ee84272130mmexport1603072297803.jpg
         * alipayUrl : http://162.247.99.201:81/9a6a979c5c1640bc88cb1819c1971079mmexport1603072302717.jpg
         * bankName : 招商银行
         * bankNameChild : 北京上地支行
         * bankNo : 6225880121905099
         * wxAccount : 15101049579
         * createTime : 2020-10-08 14:58:30
         * realName : 张大仙
         * alipayAccount : 15101049579
         */

        @JSONField(name = "pid")
        private int pid;
        @JSONField(name = "uid")
        private int uid;
        @JSONField(name = "isSupportWx")
        private int isSupportWx;
        @JSONField(name = "isSupportAipay")
        private int isSupportAipay;
        @JSONField(name = "isSupportBank")
        private int isSupportBank;
        @JSONField(name = "wxUrl")
        private String wxUrl;
        @JSONField(name = "alipayUrl")
        private String alipayUrl;
        @JSONField(name = "bankName")
        private String bankName;
        @JSONField(name = "bankNameChild")
        private String bankNameChild;
        @JSONField(name = "bankNo")
        private String bankNo;
        @JSONField(name = "wxAccount")
        private String wxAccount;
        @JSONField(name = "createTime")
        private String createTime;
        @JSONField(name = "realName")
        private String realName;
        @JSONField(name = "alipayAccount")
        private String alipayAccount;

        public int getPid() {
            return pid;
        }

        public void setPid(int pid) {
            this.pid = pid;
        }

        public int getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public int getIsSupportWx() {
            return isSupportWx;
        }

        public void setIsSupportWx(int isSupportWx) {
            this.isSupportWx = isSupportWx;
        }

        public int getIsSupportAipay() {
            return isSupportAipay;
        }

        public void setIsSupportAipay(int isSupportAipay) {
            this.isSupportAipay = isSupportAipay;
        }

        public int getIsSupportBank() {
            return isSupportBank;
        }

        public void setIsSupportBank(int isSupportBank) {
            this.isSupportBank = isSupportBank;
        }

        public String getWxUrl() {
            return wxUrl;
        }

        public void setWxUrl(String wxUrl) {
            this.wxUrl = wxUrl;
        }

        public String getAlipayUrl() {
            return alipayUrl;
        }

        public void setAlipayUrl(String alipayUrl) {
            this.alipayUrl = alipayUrl;
        }

        public String getBankName() {
            return bankName;
        }

        public void setBankName(String bankName) {
            this.bankName = bankName;
        }

        public String getBankNameChild() {
            return bankNameChild;
        }

        public void setBankNameChild(String bankNameChild) {
            this.bankNameChild = bankNameChild;
        }

        public String getBankNo() {
            return bankNo;
        }

        public void setBankNo(String bankNo) {
            this.bankNo = bankNo;
        }

        public String getWxAccount() {
            return wxAccount;
        }

        public void setWxAccount(String wxAccount) {
            this.wxAccount = wxAccount;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getRealName() {
            return realName;
        }

        public void setRealName(String realName) {
            this.realName = realName;
        }

        public String getAlipayAccount() {
            return alipayAccount;
        }

        public void setAlipayAccount(String alipayAccount) {
            this.alipayAccount = alipayAccount;
        }
    }
}
